﻿/*
 * Created by SharpDevelop.
 * User: Leandro
 * Date: 22/03/2014
 * Time: 03:59 p.m.
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Linq;

namespace Gestión_UTN
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		
		void PctAlumnosClick(object sender, EventArgs e)
		{
			Form existe = Application.OpenForms.OfType<Form>().Where(pre => pre.Name == "MainAlumnos").SingleOrDefault<Form>();

            if (existe != null)
            {
            	existe.WindowState = FormWindowState.Normal;
            }
            else
            {
            	Gestión_UTN.View.main.MainAlumnos mainAlumnos = new Gestión_UTN.View.main.MainAlumnos();
                mainAlumnos.StartPosition = FormStartPosition.CenterScreen;
                mainAlumnos.Show();
            }			
		}
		
		void PctAlumnosMouseHover(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Acceso Módulo Alumnos";
		}
		
		
		void PctAlumnosMouseLeave(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Pantalla Principal";
		}
		
		void PctProfesoresMouseHover(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Acceso Módulo Profesores";
		}
		
		void PctProfesoresMouseLeave(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Pantalla Principal";
		}
		
		void PctAdministracionMouseHover(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Acceso Módulo Administración";
		}
		
		void PctAdministracionMouseLeave(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Pantalla Principal";
		}
		
		void PctInscripcionesMouseHover(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Acceso Módulo Inscripciones";
		}
		
		void PctInscripcionesMouseLeave(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Pantalla Principal";
		}
		
		void PctReportesMouseHover(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Acceso Módulo Reportes";
		}
		
		void PctReportesMouseLeave(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Pantalla Principal";
		}
		
		void PctNotasMouseHover(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Acceso Módulo Notas";
		}
		
		void PctNotasMouseLeave(object sender, EventArgs e)
		{
			this.lblStatus.Text = "Pantalla Principal";
		}
	}
}
